﻿/*CREATE TRIGGER [dbo].[FoliosPermisos_DeletionTrigger] 
    ON [FoliosPermisos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[FoliosPermisos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[FolioGuid] = [FoliosPermisos_Tombstone].[FolioGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[FoliosPermisos_Tombstone] 
    ([FolioGuid], DeletionDate)
    SELECT [FolioGuid], GETUTCDATE()
    FROM deleted 
END*/